/*
 * @Author: chen qi
 * @Date: 2022-07-07 16:33:06
 * @LastEditors: chen qi
 * @LastEditTime: 2022-07-12 00:28:26
 * @Description:
 */
// 全局注册组件
import Vue from 'vue'
// 魔法注释勿删 ⬇️
/** plop import common compontent **/
import swiperChart from "@/components/common/swiperChart/index";
import dateClockChart from "@/components/common/dateClockChart/index";
import bmapChart from "@/components/common/bmapChart/index";
import dynamicsLineChart from "@/components/common/dynamicsLineChart/index";
import testChart from '@/components/common/testChart/index'
import fullSreen from '@/components/common/fullSreen/index'
import map2dChart from '@/components/common/map2dChart/index'
import mapChart from '@/components/common/mapChart/index'
import contextMenu from '@/components/common/contextMenu/index'
import superpositionBarChart from '@/components/common/superpositionBarChart/index'
import doubleCapsuleChart from '@/components/common/doubleCapsuleChart/index'
import lineChart from '@/components/common/lineChart/index'

import lineAndBarChart from '@/components/common/lineAndBarChart/index'
import pieChart from '@/components/common/pieChart/index'
import capsuleChart from '@/components/common/capsuleChart/index'
import mapChart2 from '@/components/common/mapChart2/index'

const arrComponents = []
arrComponents.push(
  // 魔法注释勿删 ⬇️
  /** plop import common compontent name **/
swiperChart,
dateClockChart,
bmapChart,
dynamicsLineChart,
  testChart,
  fullSreen,
  map2dChart,
  mapChart,
  contextMenu,
  superpositionBarChart,
  doubleCapsuleChart,
  lineChart,
  lineAndBarChart,
  pieChart,
  capsuleChart,
  mapChart2
)

const components = {
  install: () => {
    for (let index = 0; index < arrComponents.length; index++) {
      const element = arrComponents[index]
      Vue.component(element.name, element)
    }
  }
}
Vue.use(components)
